#include <stdio.h>

int main()
{
	float arr1[10] = { 28.9,32.7,45.6,78.0,35.0,86.2,27.8,43.0,56.0,65.0 };
	int arr2[10] = { 0 };
	int num = 0;
	float sum = 0;
	
	for (int i = 9; i >= 0; i--)
	{
		scanf("%d", &num);
		arr2[i] = num;
	}
	for (int m = 0; m < 10; m++)
	{
		arr1[m] *= arr2[m];
	}
	for (int n = 0; n < 10; n++)
	{
		sum += arr1[n];
	}
	
	printf("%1f", sum);

	return 0;
}
